<template>
  <div id="app">
    <suspension ref="sus">
      <template  #perip>
        <div class="item">
          <i  class="element-icons el-icon-zhanghu" ></i>
        </div>
        <div class="item">
            <i  class="element-icons el-icon-shouye" ></i>
        </div>
        <div class="item">
            <i  class="element-icons el-icon-tradingdata" ></i>
        </div>
        <div class="item">
            <i  class="element-icons el-icon-history" ></i>
        </div>
      </template>
    </suspension>
    <router-view />
  </div>
</template>


<script>
import suspension from './components/suspension.vue'
  export default {
  components: { suspension },
    
  }
</script>

<style lang="scss">
html,
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
img {
  padding: 0;
  margin: 0;
}
html,
body {
  font-size: 14px;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, SimSun, sans-serif;
  line-height: 1.5;
  color: #505050;

  a {
    color: #505050;
    text-decoration: none;
  }
  img {
    display: block;
    max-width: 100%;
  }
  .items {
    padding: 0.9rem;
    .title {
      padding: 0 0.9rem;
      position: relative;
      font-weight: normal;
      &::before {
        position: absolute;
        left: 0;
        top: 20%;
        content: "";
        width: 0.35rem;
        border-radius: 5px;
        height: 60%;
        background: #26c2bf;
      }
    }

    .mint-swipe-indicators {
      bottom: 5px;
      left: 42vw;

      .mint-swipe-indicator {
        width: 0.4rem;
        height: 0.4rem;

        &.is-active {
          background: #26c2bf !important;
          opacity: 0.6;
          margin: 0 2px;
        }
      }
    }

    .item {
      width: 100%;
      margin: 1.2rem 0 1.5rem;

      .books_fm {
        width: 20vw;
        height: 26vw;
        margin-right: 0.6rem;
      }
      .text {
        width: 68vw;

        span{
          font-size: 0.86rem;
        }
        .top span {
          width: 62vw;
          word-break: break-all;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2; /* 这里是超出几行省略 */
          overflow: hidden;          
        }
      }
    }
    a {
      display: flex;
      .text {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        h4 {
          color: #333;
          font-weight: normal;
        }
        span {
          color: #8f8f9e;
        }

        .bottom {
          display: flex;
          justify-content: space-between;
        }
      }
    }
  }
  .books_fm {
    border-radius: 4px;
  }

  .strong_push {
    .books_push {
      display: flex;
      flex-wrap: wrap;
      > a {
        width: 22%;
        margin: 0.8rem 0 0.2rem 4%;
        display: block;

        &:nth-child(4n + 1) {
          margin-left: 0;
        }
        &:nth-child(4n) {
          margin-right: 0;
        }

        img {
          width: 100%;
          height: 26vw;
        }

        p {
          color: #333;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          display: block;
        }
        span {
          display: block;
          color: #8f8f9e;
          font-size: 0.86rem;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          display: block;
        }
      }
    }
  }
}
</style>
